package com.senlan.water.dto.appeal;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.senlan.water.common.excel.CustomerAppealTypeExcelConvert;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode
public class CustomerAppealExcelDTO implements Serializable {

    @ExcelProperty(value = "类型",converter = CustomerAppealTypeExcelConvert.class)
    @ColumnWidth(10)
    private String appealType;

    @ExcelProperty("建议")
    @ColumnWidth(50)
    private String appealDesc;

    @ExcelProperty("图片")
    @ColumnWidth(30)
    private String photoUrl;

    @ExcelProperty("姓名")
    @ColumnWidth(10)
    private String name;

    @ExcelProperty("手机号")
    @ColumnWidth(15)
    private String phone;

    @ExcelProperty("创建时间")
    @ColumnWidth(20)
    private Date createTime;

    @ExcelProperty("创建人")
    @ColumnWidth(20)
    private String createBy;
}
